package com.limao.dataEnum;

public enum SMSTypeEnum {
	
	cloopen("https://app.cloopen.com",0),
	webchinese("http://www.webchinese.cn",1),
	dxt("http://sms.106jiekou.com",2),
	huyi("http://www.ihuyi.com",3),
	aliyun("http://sms.market.alicloudapi.com/singleSendSms",4);
	
    private String stringValue;  
    private int intVlue;  
      
	private SMSTypeEnum(String stringValue) {
		this.stringValue = stringValue;
	}

	private SMSTypeEnum(int intVlue) {
		this.intVlue = intVlue;
	}

	private SMSTypeEnum(String stringValue, int intVlue) {
		this.stringValue = stringValue;
		this.intVlue = intVlue;

	}

	public String getStringValue() {
		return stringValue;
	}

	public int getIntVlue() {
		return intVlue;
	}

	public static SMSTypeEnum getEnum(String value) {
		for (SMSTypeEnum c : SMSTypeEnum.values()) {
			if (c.getStringValue().equals(value)
					|| String.valueOf(c.getIntVlue()).equals(value)) {
				return c;
			}
		}
		return webchinese;
	}
}
